<%@ page contentType="text/html;charset=UTF-8" %>

<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Sample title</title>
    <meta name="layout" content="main" />
  </head>
  <body>
      <div id="pageBody">
          <h1>Your Shopping Cart</h1>

          ${flash.message}

          <br/><br/>
          
          <g:form name="checkOutCartForm" >
            
            <input type="hidden" name="shoppingCartId" value="${shoppingCartId}" />
                Items in Cart
                <br/>
                <br/>
<!--            <table>
                <tr>
                  <th>No.</th>
                  <th>Product Name</th>
                  <th>Unit Price</th>
                  <th>Quantity</th>
                  <th>Sub-total</th>
                </tr>-->

                ${items}
                
                Total Price: ${totalPrice}

<!--            </table>-->
          
                <br/>
                <br/>
            <a href="http://localhost:8080/WineXpress/totalprice?username=${session.customerUsername}">Check Out</a>
            
          </g:form>
      </div>
  </body>
</html>